package com.bw.service;

import com.bw.bean.Car;
import com.bw.dao.CarDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ServiceCarImpl implements ServiceCar {
    @Resource
    private CarDao dao;
    @Override
    public List<Car> list() {
        return dao.list();
    }

    @Override
    public List<Car> mohu(String name) {
        return dao.mohu(name);
    }

    @Override
    public List<Car> jingq(String carno) {
        return dao.jingq(carno);
    }

    @Override
    public List<Car> zuhe(String name, String carno) {
        return dao.zuhe(name,carno);
    }

    @Override
    public int add(Car car) {
        return dao.add(car);
    }

    @Override
    public int del(int id) {
        return dao.del(id);
    }
}
